package com.ty.xiaoyu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class Topic {
    String topicId;
    String userId;
    String moduleId;
    String topicText;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
    LocalDateTime topicTime;
    Integer topicState;
    String lastReplyId;
    String lastReplyName;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
    LocalDateTime lastReplyTime;
    String place;

    Integer greatNum;
    Integer browseNum;
    Integer replyNum;
    // 是否点赞
    boolean great;

    // 用户
    User user;
    // 模块
    Module module;
    // 帖子图片（最多九张，地址分号分隔）
    List<TopicImage> topicImageList;

}
